// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** addOrders POST /api/orders/add */
export async function addOrdersUsingPost(body: API.OrdersDTO, options?: { [key: string]: any }) {
  return request<API.BaseResponseLong_>('/api/orders/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** auditOrders POST /api/orders/audit */
export async function auditOrdersUsingPost(body: API.OrdersDTO, options?: { [key: string]: any }) {
  return request<API.BaseResponseBoolean_>('/api/orders/audit', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** deleteOrders POST /api/orders/delete */
export async function deleteOrdersUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/orders/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** finishOrders POST /api/orders/finish */
export async function finishOrdersUsingPost(body: API.OrdersDTO, options?: { [key: string]: any }) {
  return request<API.BaseResponseBoolean_>('/api/orders/finish', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listOrdersPage POST /api/orders/list */
export async function listOrdersPageUsingPost(
  body: API.OrdersDTO,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageOrdersDTO_>('/api/orders/list', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** updateOrders POST /api/orders/update */
export async function updateOrdersUsingPost(body: API.OrdersDTO, options?: { [key: string]: any }) {
  return request<API.BaseResponseBoolean_>('/api/orders/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
